
export const SPOT_TYPES = {
  GATE: { name: '出入口', color: '#4CAF50', icon: '🚪' },
  SCENIC: { name: '景点', color: '#2196F3', icon: '🏛️' },
  SHOP: { name: '商店', color: '#FF9800', icon: '🛍️' },
  TOILET: { name: '卫生间', color: '#795548', icon: '🚻' },
  JUNCTION: { name: '路口', color: '#9E9E9E', icon: '⚓' },
  RESTAURANT: { name: '餐饮', color: '#F44336', icon: '🍴' }, // 新增
  TRANSPORT: { name: '交通点', color: '#3F51B5', icon: '🚏' } // 新增
};

export const PATH_TYPES = {
  ROAD: { name: '马路', color: '#616161', weight: 4, dash: false },
  WALKWAY: { name: '人行道', color: '#78909C', weight: 2, dash: false },
  TRAIL: { name: '步道', color: '#8D6E63', weight: 3, dash: true } // 新增
};
export const scenicSpots = {
  1: {
    id: 1,
    name: "故宫",
    isMain: true,
    center: { x: 500, y: 500 },
    subSpots: [
      {
        id: 1,
        name: "午门",
        x: 500,
        y: 600,
        type: "GATE",
        offset: 40,
        details: {
          description: "午门是故宫的正门，位于紫禁城南端，是皇帝举行大典的地方。",
          image: "/images/wumen.jpg"
        }
      },
      {
        id: 2,
        name: "太和殿",
        x: 500,
        y: 450,
        type: "SCENIC",
        offset: 20,
        details: {
          description: "太和殿是故宫中最大的殿堂，是皇帝举行朝会和大典的场所。",
          image: "/images/taihedian.jpg"
        }
      },
      {
        id: 3,
        name: "中和殿",
        x: 500,
        y: 400,
        type: "SCENIC",
        offset: 20,
        details: {
          description: "中和殿是皇帝举行仪式前休息和准备的地方。",
          image: "/images/zhonghedian.jpg"
        }
      },
      {
        id: 4,
        name: "保和殿",
        x: 500,
        y: 350,
        type: "SCENIC",
        offset: 20,
        details: {
          description: "保和殿是皇帝举行宴会和科举考试的地方。",
          image: "/images/baohedian.jpg"
        }
      },
      {
        id: 5,
        name: "乾清宫",
        x: 500,
        y: 300,
        type: "SCENIC",
        offset: 20,
        details: {
          description: "乾清宫是皇帝日常起居和处理政务的地方。",
          image: "/images/qianqinggong.jpg"
        }
      },
      {
        id: 6,
        name: "交泰殿",
        x: 500,
        y: 250,
        type: "SCENIC",
        offset: 20,
        details: {
          description: "交泰殿是皇后举行庆典和接受朝拜的地方。",
          image: "/images/jiaotaidian.jpg"
        }
      },
      {
        id: 7,
        name: "坤宁宫",
        x: 500,
        y: 200,
        type: "SCENIC",
        offset: 20,
        details: {
          description: "坤宁宫是皇后的寝宫，也是举行婚礼的场所。",
          image: "/images/kunninggong.jpg"
        }
      },
      {
        id: 8,
        name: "景仁宫",
        x: 450,
        y: 300,
        type: "SCENIC",
        offset: 20,
        details: {
          description: "景仁宫是东六宫之一，供妃嫔居住。",
          image: "/images/jingrengong.jpg"
        }
      },
      {
        id: 9,
        name: "承乾宫",
        x: 450,
        y: 250,
        type: "SCENIC",
        offset: 20,
        details: {
          description: "承乾宫是东六宫之一，供妃嫔居住。",
          image: "/images/chengqiangong.jpg"
        }
      },
      {
        id: 10,
        name: "钟粹宫",
        x: 450,
        y: 200,
        type: "SCENIC",
        offset: 20,
        details: {
          description: "钟粹宫是东六宫之一，供妃嫔居住。",
          image: "/images/zhongcuigong.jpg"
        }
      },
      {
        id: 11,
        name: "延禧宫",
        x: 550,
        y: 300,
        type: "SCENIC",
        offset: 20,
        details: {
          description: "延禧宫是东六宫之一，供妃嫔居住。",
          image: "/images/yanxigong.jpg"
        }
      },
      {
        id: 12,
        name: "御花园",
        x: 500,
        y: 150,
        type: "SCENIC",
        offset: 25,
        details: {
          description: "御花园是皇帝和后妃休闲散步的地方，园内有众多奇花异石。",
          image: "/images/yuhuayuan.jpg"
        }
      },
      {
        id: 13,
        name: "神武门",
        x: 500,
        y: 100,
        type: "GATE",
        offset: 30,
        details: {
          description: "神武门是故宫的北门，是皇帝出巡时使用的出口。",
          image: "/images/shenwumen.jpg"
        }
      }
    ],
    edges: [
      { from: 1, to: 2, type: "MAIN" },
      { from: 2, to: 3, type: "MAIN" },
      { from: 3, to: 4, type: "MAIN" },
      { from: 4, to: 5, type: "MAIN" },
      { from: 5, to: 6, type: "MAIN" },
      { from: 6, to: 7, type: "MAIN" },
      { from: 7, to: 12, type: "MAIN" },
      { from: 5, to: 8, type: "SIDE" },
      { from: 5, to: 11, type: "SIDE" },
      { from: 8, to: 9, type: "SIDE" },
      { from: 9, to: 10, type: "SIDE" },
      { from: 1, to: 13, type: "ROAD" }
    ]
  },
  2: {
    id: 2,
    name: "颐和园",
    isMain: true,
    center: { x: 600, y: 600 },
    subSpots: [
      // 主要入口
      {
        id: 21,
        name: "东宫门",
        x: 700,
        y: 700,
        type: "GATE",
        details: {
          description: "颐和园的主要入口，建筑宏伟壮观。",
          image: "/images/donggongmen.jpg"
        }
      },

      // 昆明湖区域
      {
        id: 22,
        name: "昆明湖",
        x: 550,
        y: 650,
        type: "SCENIC",
        details: {
          description: "中国古典园林中最大的人工湖，面积达220公顷。",
          image: "/images/kunminghu.jpg"
        }
      },
      {
        id: 23,
        name: "十七孔桥",
        x: 500,
        y: 680,
        type: "SCENIC",
        details: {
          description: "连接东堤与南湖岛的长桥，因有17个桥洞而得名。",
          image: "/images/shiqikongqiao.jpg"
        }
      },
      {
        id: 24,
        name: "南湖岛",
        x: 450,
        y: 650,
        type: "SCENIC",
        details: {
          description: "昆明湖中的主要岛屿，上有龙王庙等建筑。",
          image: "/images/nanhudao.jpg"
        }
      },

      // 万寿山区域
      {
        id: 25,
        name: "佛香阁",
        x: 600,
        y: 500,
        type: "SCENIC",
        details: {
          description: "颐和园的标志性建筑，八面三层四重檐，高41米。",
          image: "/images/foxiangge.jpg"
        }
      },
      {
        id: 26,
        name: "排云殿",
        x: 600,
        y: 550,
        type: "SCENIC",
        details: {
          description: "万寿山前建筑群的主体，慈禧太后举行庆典的场所。",
          image: "/images/paiyundian.jpg"
        }
      },
      {
        id: 27,
        name: "长廊",
        x: 550,
        y: 580,
        type: "SCENIC",
        details: {
          description: "全长728米，枋梁上绘有14000余幅彩画，被誉为“世界第一廊”。",
          image: "/images/changlang.jpg"
        }
      },

      // 后山区域
      {
        id: 28,
        name: "苏州街",
        x: 650,
        y: 450,
        type: "SCENIC",
        details: {
          description: "仿江南水乡建造的宫廷市肆，专供帝后逛市游览。",
          image: "/images/suzhoujie.jpg"
        }
      },
      {
        id: 29,
        name: "谐趣园",
        x: 700,
        y: 500,
        type: "SCENIC",
        details: {
          description: "园中园的代表作，仿无锡寄畅园而建。",
          image: "/images/xiequyuan.jpg"
        }
      },

      // 西堤区域
      {
        id: 30,
        name: "玉带桥",
        x: 400,
        y: 600,
        type: "SCENIC",
        details: {
          description: "西堤六桥中唯一拱券结构的石桥，形似玉带。",
          image: "/images/yudaiqiao.jpg"
        }
      },
      {
        id: 31,
        name: "镜桥",
        x: 420,
        y: 620,
        type: "SCENIC",
        details: {
          description: "西堤六桥之一，取“两水夹明镜”诗意命名。",
          image: "/images/jingqiao.jpg"
        }
      }
    ],
    edges: [
      // 主要游览路线
      { from: 21, to: 26, type: "MAIN" },  // 东宫门→排云殿
      { from: 26, to: 25, type: "MAIN" },  // 排云殿→佛香阁
      { from: 25, to: 28, type: "TRAIL" },  // 佛香阁→苏州街

      // 湖区连接
      { from: 22, to: 23, type: "WALKWAY" },  // 昆明湖→十七孔桥
      { from: 23, to: 24, type: "WALKWAY" },  // 十七孔桥→南湖岛
      { from: 22, to: 27, type: "WALKWAY" },  // 昆明湖→长廊

      // 西堤连接
      { from: 30, to: 31, type: "TRAIL" },  // 玉带桥→镜桥
      { from: 22, to: 30, type: "TRAIL" },  // 昆明湖→玉带桥

      // 园林连接
      { from: 28, to: 29, type: "TRAIL" }   // 苏州街→谐趣园
    ]
  },
  3: {
    id: 3,
    name: "北京邮电大学",
    isMain: true,
    center: { x: 400, y: 400 }, // 校园中心点
    subSpots: [
      // 校门区域
      {
        id: 31,
        name: "南门",
        x: 400,
        y: 500,
        type: "gate",
        details: {
          description: "主校门，正对学校主楼，门前有校名石",
          image: "/images/bupt_south_gate.jpg"
        }
      },
      {
        id: 32,
        name: "小南门",
        x: 350,
        y: 480,
        type: "gate",
        details: {
          description: "学生常用出入口，靠近学生公寓",
          image: "/images/bupt_minor_south_gate.jpg"
        }
      },

      // 教学区
      {
        id: 33,
        name: "主楼",
        x: 400,
        y: 450,
        type: "main",
        details: {
          description: "学校标志性建筑，行政办公和教学主要场所",
          image: "/images/bupt_main_building.jpg"
        }
      },
      {
        id: 34,
        name: "教三楼",
        x: 380,
        y: 430,
        type: "academic",
        details: {
          description: "主要教学楼，大部分基础课程在此授课",
          image: "/images/bupt_teaching_building3.jpg"
        }
      },
      {
        id: 35,
        name: "图书馆",
        x: 420,
        y: 420,
        type: "academic",
        details: {
          description: "馆藏文献300余万册，信息化程度高的现代化图书馆",
          image: "/images/bupt_library.jpg"
        }
      },

      // 科研区
      {
        id: 36,
        name: "科研楼",
        x: 450,
        y: 380,
        type: "research",
        details: {
          description: "重点实验室和科研机构集中地",
          image: "/images/bupt_research_building.jpg"
        }
      },
      {
        id: 37,
        name: "网络空间安全学院",
        x: 430,
        y: 360,
        type: "research",
        details: {
          description: "国家网络安全人才培养基地",
          image: "/images/bupt_cybersec_college.jpg"
        }
      },

      // 生活区
      {
        id: 38,
        name: "学生公寓1-8号楼",
        x: 350,
        y: 400,
        type: "dorm",
        details: {
          description: "本科生主要住宿区，8栋连体建筑组成",
          image: "/images/bupt_dormitory.jpg"
        }
      },
      {
        id: 39,
        name: "学生食堂",
        x: 370,
        y: 390,
        type: "living",
        details: {
          description: "可容纳3000人同时就餐，三层各有特色餐饮",
          image: "/images/bupt_canteen.jpg"
        }
      },

      // 运动休闲
      {
        id: 310,
        name: "体育馆",
        x: 330,
        y: 350,
        type: "sports",
        details: {
          description: "包含游泳馆、篮球馆等设施的综合体育馆",
          image: "/images/bupt_gymnasium.jpg"
        }
      },
      {
        id: 311,
        name: "时光广场",
        x: 400,
        y: 380,
        type: "square",
        details: {
          description: "校园中心广场，学生活动主要场所",
          image: "/images/bupt_time_square.jpg"
        }
      },
      {
        id: 312,
        name: "银杏大道",
        x: 410,
        y: 440,
        type: "path",
        details: {
          description: "秋季银杏叶金黄，是校园著名景观大道",
          image: "/images/bupt_ginkgo_road.jpg"
        }
      }
    ],
    edges: [
      // 主要轴线
      { from: 31, to: 33, type: "main" },  // 南门→主楼
      { from: 33, to: 311, type: "main" }, // 主楼→时光广场

      // 教学区连接
      { from: 33, to: 34, type: "academic" }, // 主楼→教三楼
      { from: 34, to: 35, type: "academic" }, // 教三楼→图书馆
      { from: 35, to: 36, type: "academic" }, // 图书馆→科研楼

      // 生活区连接
      { from: 34, to: 38, type: "path" },    // 教三楼→学生公寓
      { from: 38, to: 39, type: "path" },    // 学生公寓→食堂
      { from: 39, to: 310, type: "path" },   // 食堂→体育馆

      // 景观路径
      { from: 311, to: 312, type: "path" }, // 时光广场→银杏大道
      { from: 312, to: 35, type: "path" },  // 银杏大道→图书馆

      // 次要入口
      { from: 32, to: 38, type: "path" }    // 小南门→学生公寓
    ]
  },
  // 天坛公园
  4: {
    id: 4,
    name: "天坛",
    center: { x: 600, y: 650 },  // 位于故宫南侧
    subSpots: [
      {
        id: 41,
        name: "圜丘坛",
        x: 600,
        y: 670,
        type: "altar",
        details: {
          description: "冬至祭天大典场所，三层汉白玉圆坛暗合'天心十道'",
          image: "/images/temple_of_heaven_altar.jpg"
        }
      },
      {
        id: 42,
        name: "祈年殿",
        x: 600,
        y: 630,
        type: "hall",
        details: {
          description: "鎏金宝顶三重檐攒尖顶建筑，古代帝王祈谷之所",
          image: "/images/qiniandian.jpg"
        }
      },
      {
        id: 43,
        name: "回音壁",
        x: 590,
        y: 640,
        type: "feature",
        details: {
          description: "利用声波反射原理建造的特殊围墙",
          image: "/images/echo_wall.jpg"
        }
      }
    ],
    edges: [
      { from: 41, to: 43, type: "sacred" },
      { from: 43, to: 42, type: "main" }
    ]
  },
  // 圆明园遗址公园
  5: {
    id: 5,
    name: "圆明园",
    center: { x: 900, y: 250 },  // 位于颐和园东北
    subSpots: [
      {
        id: 51,
        name: "西洋楼遗址",
        x: 890,
        y: 230,
        type: "ruins",
        details: {
          description: "巴洛克风格建筑群遗迹，含大水法、观水法等遗址",
          image: "/images/european_palace_ruins.jpg"
        }
      },
      {
        id: 52,
        name: "福海",
        x: 910,
        y: 260,
        type: "lake",
        details: {
          description: "园中最大水面，再现蓬岛瑶台景观",
          image: "/images/fuhai_lake.jpg"
        }
      }
    ],
    edges: [
      { from: 51, to: 52, type: "historic" }
    ]
  },

  // 现代地标
  6: {
    id: 6,
    name: "奥林匹克公园",
    center: { x: 1100, y: 150 },  // 北四环外
    subSpots: [
      {
        id: 61,
        name: "鸟巢",
        x: 1100,
        y: 160,
        type: "stadium",
        details: {
          description: "国家体育场，2008奥运主体育场",
          image: "/images/birds_nest.jpg"
        }
      },
      {
        id: 62,
        name: "水立方",
        x: 1120,
        y: 155,
        type: "aquatic",
        details: {
          description: "国家游泳中心，现为'冰立方'",
          image: "/images/water_cube.jpg"
        }
      },
      {
        id: 63,
        name: "奥林匹克塔",
        x: 1080,
        y: 140,
        type: "tower",
        details: {
          description: "246.8米高的观光塔，可俯瞰中轴线",
          image: "/images/olympic_tower.jpg"
        }
      }
    ],
    edges: [
      { from: 61, to: 62, type: "modern" },
      { from: 63, to: 61, type: "view" }
    ]
  },

  // 文化街区
  7: {
    id: 7,
    name: "南锣鼓巷",
    center: { x: 550, y: 400 },  // 鼓楼东侧
    subSpots: [
      {
        id: 71,
        name: "中央戏剧学院",
        x: 545,
        y: 390,
        type: "school",
        details: {
          description: "中国戏剧艺术教育最高学府",
          image: "/images/chinese_central_academy.jpg"
        }
      },
      {
        id: 72,
        name: "帽儿胡同",
        x: 555,
        y: 410,
        type: "alley",
        details: {
          description: "保存完好的四合院胡同区",
          image: "/images/maoer_hutong.jpg"
        }
      }
    ],
    edges: [
      { from: 71, to: 72, type: "cultural" }
    ]
  },
}